package edu.scau.mis.pos.dto;

import edu.scau.mis.core.domain.BaseEntity;

import java.math.BigDecimal;

public class ProductSkusDTO extends BaseEntity {

        private String productSn;        // 商品编码
        private String skuCode;         // SKU编码
        private String skuUrl;    // 商品图片
        private String productName;     // 商品名称
        private String size;  // 规格属性（如：M 红色）
        private String color;
        private Integer stockQuantity;  // 库存数量

        private BigDecimal price;       // 商品价格
        private int status;          // 上架状态（1上架/0下架）



    // Getters 和 Setters
        public String getProductSn() {
            return productSn;
        }

        public void setProductSn(String productSn) {
            this.productSn = productSn;
        }

        public String getSkuCode() {
            return skuCode;
        }

        public void setSkuCode(String skuCode) {
            this.skuCode = skuCode;
        }

        public String getSkuUrl() {
            return skuUrl;
        }

        public void setProductImage(String skuUrl) {
            this.skuUrl = skuUrl;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void setSkuUrl(String skuUrl) {
        this.skuUrl = skuUrl;
    }


    public Integer getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(Integer stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

    public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

    @Override
    public String toString() {
        return "ProductSkusDTO{" +
                "productSn='" + productSn + '\'' +
                ", skuCode='" + skuCode + '\'' +
                ", skuUrl='" + skuUrl + '\'' +
                ", productName='" + productName + '\'' +
                ", size='" + size + '\'' +
                ", color='" + color + '\'' +
                ", stockQuantity=" + stockQuantity +
                ", price=" + price +
                ", status=" + status +
                '}';
    }
}

